//
//  YKNetHelp.h
//  BiaoPny
//
//  Created by QFYK on 2017/5/12.
//  Copyright © 2017年 BiaoPu. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

@interface YKNetHelp : AFHTTPSessionManager
+ (instancetype)shareManager;
// 判断是否有网络
+ (void)isReachToWeb ;
// 封装 Get 请求，成功和失败分开处理
+ (void)getDataWithPath:(NSString *)path andParams:(NSDictionary *)params andComplete:(void (^)(BOOL success, id result))complete;
// 封装 Post 请求，成功和失败在一个 block 里面处理
+ (void)postWithPath:(NSString *)path andParams:(NSDictionary *)params andComplete:(void (^)(BOOL success, id result))complete;
// 封装 Delete 请求，成功和失败分开处理
+ (void)deleteDataWithPath:(NSString *)path andParams:(NSDictionary *)params andComplete:(void (^)(BOOL success, id result))complete;

+ (void)getPictureWithImage:(UIImageView *)imageView andURLString:(NSString *)url;

//// 可拿到的数据图片
//+ (void)getPictureWithImage:(UIImageView *)imageView andURLString:(NSString *)url andCompleteBackImage:(void (^)(UIImage *backimage))backimage;
//
//+ (void)getPictureWithImageBigPlachoderPic:(UIImageView *)imageView andURLString:(NSString *)url;

@end
